home *** CD-ROM | disk | FTP | other *** search
-
-
-
- llllssssttttrrrrwwwwiiiiddddtttthhhh((((3333GGGG)))) llllssssttttrrrrwwwwiiiiddddtttthhhh((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- llllssssttttrrrrwwwwiiiiddddtttthhhh - returns the width of the specified text string
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- lllloooonnnngggg llllssssttttrrrrwwwwiiiiddddtttthhhh((((ttttyyyyppppeeee,,,,ssssttttrrrr))))
- lllloooonnnngggg ttttyyyyppppeeee;;;;
- vvvvooooiiiidddd ****ssssttttrrrr;;;;
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _t_y_p_e expects one of the following symbolic constants defined in
- <_g_l/_g_l._h>:
-
- Each character is represented by
- a single unsigned byte.
- STR_B
-
- Each character is represented by
- two, consecutive unsigned bytes.
- The first byte is most
- significant.
- STR_2B
-
-
-
- Each character is represented by
- three, consecutive unsigned
- bytes. The first byte is most
- significant. The last byte is
- least significant.
- STR_3B
-
-
-
-
- Each character is represented by
- four, consecutive unsigned bytes.
- The first byte is most
- significant. The last byte is
- least significant.
- STR_4B
-
-
-
-
- Each character is represented by
- a 16-bit unsigned integer.
- STR_16
-
- Each character is represented by
- a 32-bit unsigned integer.
- STR_32
-
-
-
- _s_t_r expects a pointer to the string whose width is to be computed.
- The contents of the string should be consistent with respect to
- the _t_y_p_e parameter.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- llllssssttttrrrrwwwwiiiiddddtttthhhh returns the width of a text string in pixels, using the
- character spacing parameters of the current raster font.
-
- Multi-byte types (2B, 3B and 4B) are converted to character values using
- the following formulas for character iiii in unsigned byte-string ssss:
-
- STR_2B: (s[2*i]*256) + s[2*i+1]
- STR_3B: ((s[3*i]*256) + s[3*i+1])*256 + s[3*i+2]
- STR_4B: (((s[4*i]*256) + s[4*i+1])*256) + s[4*i+2])*256 + s[4*i+3]
-
- End of string is indicated by a character value of zero.
-
- Undefined characters have zero width.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- llllssssttttrrrrwwwwiiiiddddtttthhhh((((3333GGGG)))) llllssssttttrrrrwwwwiiiiddddtttthhhh((((3333GGGG))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- deflfont, getlwidth, lcharstr, mapw, mapw2
-
- NNNNOOOOTTTTEEEE
- This routine is available only in immediate mode.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-